/* 设备绑定抽屉样式 */
.device-bind-drawer .ant-drawer-content {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-bind-drawer .ant-drawer-body {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.device-bind-drawer .ant-radio-button-wrapper {
  border-radius: 6px !important;
  border: 1px solid #d1d5db;
  transition: all 0.2s ease;
}

.device-bind-drawer .ant-radio-button-wrapper:first-child {
  border-radius: 6px 0 0 6px !important;
}

.device-bind-drawer .ant-radio-button-wrapper:last-child {
  border-radius: 0 6px 6px 0 !important;
}

.device-bind-drawer .ant-radio-button-wrapper-checked {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: white !important;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.device-bind-drawer .ant-radio-button-wrapper:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

/* 加载状态动画 */
.device-bind-loading {
  position: relative;
  overflow: hidden;
}

.device-bind-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* 设备卡片动画 */
.device-card-enter {
  opacity: 0;
  transform: translateY(20px);
}

.device-card-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease-out;
}

/* 监控数据卡片 */
.monitoring-card {
  transition: all 0.2s ease;
}

.monitoring-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 状态指示器动画 */
.status-indicator {
  position: relative;
}

.status-indicator.online::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  width: 4px;
  height: 4px;
  background: #10b981;
  border-radius: 50%;
  transform: translateY(-50%);
  animation: pulse 2s infinite;
}

.status-indicator.offline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  width: 4px;
  height: 4px;
  background: #ef4444;
  border-radius: 50%;
  transform: translateY(-50%);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  50% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1.2);
  }
}